package models

type LtResult struct {
	Id         int    `gorm:"primaryKey" json:"-"`
	GiftId     int    `gorm:"not null; default:0; comment:奖品ID，关联lt_gift表; type:INT(10)" json:"gift_id"`
	GiftName   string `gorm:"not null; default:''; comment:奖品名称; type:VARCHAR(255)" json:"gift_name"`
	GiftType   int    `gorm:"not null; default:0; comment:奖品类型，同lt_gift. gtype; type:INT(10)" json:"gift_type"`
	Uid        int    `gorm:"not null; default:0; comment:用户ID; type:INT(10)" json:"uid"`
	Username   string `gorm:"not null; default:''; comment:用户名; type:VARCHAR(50)" json:"username"`
	PrizeCode  int    `gorm:"not null; default:0; comment:抽奖编号（4位的随机数）; type:INT(10)" json:"-"`
	GiftData   string `gorm:"not null; default:''; comment:获奖信息; type:VARCHAR(255)" json:"-"`
	SysCreated int    `gorm:"not null; default:0; comment:创建时间; type:INT(10)" json:"-"`
	SysIp      string `gorm:"not null; default:''; comment:用户抽奖的IP; type:VARCHAR(50)" json:"-"`
	SysStatus  int    `gorm:"not null; default:0; comment:状态，0 正常，1删除，2作弊; type:SMALLINT(5)" json:"-"`
}
